package www.ym.com.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 用户信息
 */
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //姓名
    private String username;

    //手机号
    private  Long phone;

    //經過md5加密後的密碼
    private String password;

    //验证码
    private String checkCode;

    //盐值
    private String salt;

    //性别 0 女  男
    private Integer sex;

    //身份证号
    private String idNumber;

    //头像
    private String avatar;

    //状态 0:禁用，1:有效
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    public LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    public LocalDateTime updateTime;
}
